<?php echo form_open(base_url().'admin/pelatihan_con/update')?>
    <table style="border: 1px solid brown;padding-left: 20px" align="center" width="50%">
        <tr>
            <td align="center"><h1>EDIT PELATIHAN <?php echo $content['KODE_PELATIHAN']?></h1></td>
        </tr>
        <tr>
            <td align="center">
                <?php
                    echo validation_errors();
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left" colspan="2">
                <?php
                    echo form_hidden('KODE_PELATIHAN',$content['KODE_PELATIHAN']);
                ?>
            </td>
        </tr>
        <tr>
            <td width="50%" align="left"><b>Nama* : </b></td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <?php
                    echo form_input('NAMA_PELATIHAN',$content['NAMA_PELATIHAN']);
                ?>
            </td>
        </tr>
        <tr>
            <td width="50%" align="left"><b>Jenis* : </b></td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <?php
                    echo form_dropdown('JENIS',$jenis,$content['JENIS']);
                ?>
            </td>
        </tr>
        <tr>
            <td width="50%" align="left"><b>Seri* : </b></td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <?php
                    echo form_dropdown('SERI_PELATIHAN',$seri,$content['SERI_PELATIHAN']);
                ?>
            </td>
        </tr>
        <tr>
            <td align="left">
                <b>Preview :</b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'PREVIEW',
                      'id'          => 'PREVIEW',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data,$content['PREVIEW']);
                ?>
                
            </td>
        </tr>
        <tr>
            <td align="left">
                <b>Deskripsi :</b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'DESKRIPSI',
                      'id'          => 'DESKRIPSI',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data,$content['DESKRIPSI']);
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <b>Objective :</b> 
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'OBJECTIVE',
                      'id'          => 'OBJECTIVE',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data,$content['OBJECTIVE']);
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <b>Tools : </b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'TOOLS',
                      'id'          => 'TOOLS',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data,$content['TOOLS']);
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <b>Prerequisite : </b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'PREREQ',
                      'id'          => 'PREREQ',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data,$content['PREREQ']);
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <b>Rel Course : </b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'REL_COURSE',
                      'id'          => 'REL_COURSE',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data,$content['REL_COURSE']);
                ?>
                
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $submitcon = array('value'=>'Submit');
                    echo form_submit($submitcon);
                    echo '&nbsp';
                    $resetcon = array('value'=>'Reset');
                    echo form_reset($resetcon);
                    echo '&nbsp';
                    $script='onClick="location.href=\''.  base_url().'admin/pelatihan_con\'"';
                    echo form_button('','Kembali',$script);
                ?>
            </td>
        </tr>
    </table>
<?php echo form_close()?> 
